package com.shuziren.question.entity.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateInterviewQuestionDTO {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "标题不能为空")
    private String title;
    @NotNull(message = "答案不能为空")
    private String answer;
    @NotNull(message = "详情不能为空")
    private String description;

    private String tags;
    @Min(value = 1,message = "难度不能为空")
    @Max(value = 3,message = "难度不能大于3")
    private Integer difficulty;
    @NotNull(message = "预计时长不能为空")
    private  Integer expectedTime;
    @NotNull(message = "状态不能为空")
    @Min(value = 1,message = "状态不能小于1")
    @Max(value = 2,message = "状态不能大于2")
    private Integer status;
    @NotNull(message = "分值不能为空")
    private  Integer score;

    private List<Integer> categories;

    private List<Integer> questionSets;
}
